<?php namespace App\Http\Requests;

class ProjectTeamRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    public function attributes()
    {
        return [
            'name'      =>   '团队成员名称' ,
            'position'  =>   '职位（头衔）' ,
        ];
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name'         =>   'required' ,
            'position'     =>   'required' ,
        ];
    }
}